<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta name="author" content="tyler chao">
  <meta name="keywords" content="keywords">
  <meta name="description" content="description">
  <title>供货管理</title>
  <link rel="stylesheet" href="<{$env.app.res_url}>/css/mobile.min.css">
  <link rel="stylesheet" href="<{$env.app.res_url}>/css/main.min.css">
</head>
<body>
<header class="fixed">
  <div class="top-bar" data-topbar>
    <div class="pos-left">
      <a href="javascript:history.back();" class="icon-arrow-back"></a>
    </div>
    <h1>供货管理</h1>
    <div class="pos-right"><a href="" class="icon-refresh"></a></div>
  </div>
</header>
<main id="main" class="container no-margin">
    <div class="atitle container blank">
        <h2><{$item.material_name}></h2>
        <h5 class="text-reverse"><{$item.material_bn}></h5>
    </div>
    <form action="<{$link_url}>?id=<{$item.id}>" method="post" class="collapse" data-validator="ajax">
        <ul class="table-list">
            <li class="item">
                <label for="">是否管控库存</label>
                <div class="switch round">
                <input type="checkbox" name="is_ctrl_store" id="is_ctrl_store" <{if $item.is_ctrl_store == 1}>checked="checked"<{/if}> >
                <label for="is_ctrl_store"></label>
                </div>
            </li>
            <li class="item">
                <label for="">销售状态</label>
                <div class="switch round">
                <input type="checkbox" name="status" id="status" <{if $item.status == 1}>checked="checked"<{/if}> >
                <label for="status"></label>
                </div>
            </li>
            <li class="item">
                <label for="stock">库存</label>
                <input type="text" pattern="digital" required name="store_num" id="store_num" class="small text-center" size="6" value="<{$item.store}>" data-alerts="库存必填，并且只允许填写数字">
            </li>
        </ul>
        <div class="action-bar blank"><input type="hidden" name="id" value="<{$item.id}>"><button type="submit" class="primary expand">保存</button></div>
    </form>
</main>

<{include file="store/footer.html"}>
</body>
</html>